package com.cxl.mapper;

import com.cxl.entity.Tenant;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 房客表 Mapper 接口
 * </p>
 *
 * @author cuixuelei
 * @since 2022-02-17
 */
@Repository
public interface TenantMapper extends BaseMapper<Tenant> {

    @Select("select * from t_tenant where id=#{tid}")
    Tenant getByTenant(@Param("tid")Integer tid);
}
